﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Program
    {


        static void Main(string[] args)
        {
            double[] arr = { 10, 20, 30, 40, 50 };
            double sum = 0;
            foreach (double arr1 in arr)
            {
                sum += arr1;
            }
            double he = sum / 5;
            Console.WriteLine("总成绩"+sum);
            Console.WriteLine("平均成绩"+he);
           

        }
    }
}
